export default [
  { path: '/login', component: '@/pages/login', layout: false },
  {
    path: '/',
    component: '@/layouts/index',
    name: '首页',
    icon: 'crown',
    access: 'isAdmin',
    routes: [
      {
        path: '/user',
        component: '@/pages/user/index',
        name: '用户',
        access: 'isAdmin',
        // wrappers: ['@/wrappers/auth'], // 配置路由的高阶组件封装。
      },
      {
        path: '/userinfo',
        name: '用户信息',
        access: 'isEditor',
        component: '@/pages/user/index',
        wrappers: ['@/wrappers/auth'], // 配置路由的高阶组件封装。
      },
      {
        path: '/user2',
        name: '用户2',
        access: 'canAccess',
        component: '@/pages/user/index',
      },
      // {path: '/list',component: 'list'},
      // {path: '/admin',component: 'admin'},
    ],
  },
];
